import {get, post} from './request'
// 获取用户列表
export const getUserList = (params?: any) => get('/platform/weather', params)
// 根据ID获取用户信息
export const getUserById = (id: number) => get(`/users/${id}`)
// 用户登录
export const userLogin = (data: any) => post(`/user/login_pass`, data)
//获取用户信息
export const getUserInfo = () => get(`/user/main`)
// 修改用户信息
export const editUser = (id: number, data: any) => post(`/users/${id}`, data)